package com.tramy.cnpush.service;

import android.util.Log;

import com.huawei.hms.push.HmsMessageService;
import com.huawei.hms.push.RemoteMessage;
import com.tramy.cnpush.utils.CallBackUtils;

public class HPushMessageService extends HmsMessageService {

    @Override
    public void onMessageReceived(RemoteMessage remoteMessage) {

    }

    @Override
    public void onNewToken(String token) {
        CallBackUtils.consumeCallback(token);
    }

    @Override
    public void onTokenError(Exception e) {
        Log.e("HuaweiPush", e.toString());
    }

}
